﻿#region 命名空间

using System;
using WinnerCMS.Common;
using WinnerCMS.Model.Attribute;

#endregion

namespace WinnerCMS.WebUI.Admin.Template
{
    [Access("263004")]
    public partial class HtmlTemplate1 : WebFactory.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.lblPath2.Text = "ģ�����";

                this.txtTemplate.Text = new FileIO().ReadFile(Server.UrlDecode(Request["FilePath"]));
            }
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            var FilePath = Request["FilePath"];
            new FileIO().WriterFile(FilePath, Server.UrlDecode(this.txtTemplate.Text.Trim()));

            MsgBox.Message("����ɹ�", this.UpdatePanel1);
        }
    }
}